package cn.ac.siom.query.service.impl;

import cn.ac.siom.query.dao.Sys_userDAO;
import cn.ac.siom.query.service.UserService;
import cn.ac.siom.query.vo.Permission;
import cn.ac.siom.query.vo.Sys_user;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.Set;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private Sys_userDAO sys_userDAO;

    @Override
    public Sys_user getUserInfo(Sys_user user) throws SQLException {
        Sys_user sys_user=this.sys_userDAO.getUser(user);
        return sys_user;
    }

    @Override
    public Sys_user finderoles(String user) throws SQLException {
        return this.sys_userDAO.finderoles(user);
    }

    @Override
    public Sys_user findPermissions(String user) throws SQLException {
        return this.sys_userDAO.findPermissions(user);
    }


}
